//实现
class A {
    constructor(name) {
        this.name = name;
    }
    say() {
        console.log(this.name + "说：你好");
    }
}
let a1 = new A("小明");
a1.say();
class Dogs {
    constructor(name) {
        this.name = name;
    }
    getContent() {
        console.log("Dog对象");
    }
}
function show1(d) {
    d.getContent();
}
let d2 = new Dogs("金毛");
show1(d2);
class Car {
    constructor(name) {
        this.name = name;
    }
    getContent() {
        console.log("Car对象");
    }
}
let c1 = new Car("比亚迪.宋");
show1(c1);
